import util from "utils/util";

export function openReportSubscribe() {
  let tmplIds = ["XeqKWDLeckOkLE7hzW_5zzctkDTuEapJyurnmFMebpA"];
  return subscribe(tmplIds);
}
/**
 * 调起订阅界面
 * array tmplIds 模板id
 */
export function subscribe(tmplIds) {
  let wecaht = wx;
  return new Promise((reslove, reject) => {
    wecaht.requestSubscribeMessage({
      tmplIds: tmplIds,
      success(res) {
        return reslove(res);
      },
      fail(res) {
        return reslove(res);
      },
    });
  });
}
